<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 48 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts48p0{position:absolute;left:106px;top:97px;}
 .ts48p1{position:absolute;left:352px;top:97px;}
 .ts48p3{position:absolute;left:672px;top:97px;}
 .ts48p7{position:absolute;left:106px;top:113px;}
 .ts48p8{position:absolute;left:706px;top:1026px;}
 .ts48p9{position:absolute;left:331px;top:1044px;}
 .ts48p13{position:absolute;left:106px;top:147px;}
 .ts48p14{position:absolute;left:106px;top:165px;}
 .ts48p16{position:absolute;left:106px;top:183px;}
 .ts48p17{position:absolute;left:106px;top:201px;}
 .ts48p19{position:absolute;left:106px;top:220px;}
 .ts48p22{position:absolute;left:106px;top:238px;}
 .ts48p23{position:absolute;left:106px;top:256px;}
 .ts48p25{position:absolute;left:106px;top:274px;}
 .ts48p26{position:absolute;left:106px;top:293px;}
 .ts48p27{position:absolute;left:106px;top:311px;}
 .ts48p28{position:absolute;left:106px;top:329px;}
 .ts48p29{position:absolute;left:106px;top:348px;}
 .ts48p31{position:absolute;left:106px;top:366px;}
 .ts48p32{position:absolute;left:106px;top:386px;}
 .ts48p34{position:absolute;left:106px;top:404px;}
 .ts48p36{position:absolute;left:106px;top:422px;}
 .ts48p37{position:absolute;left:106px;top:440px;}
 .ts48p39{position:absolute;left:106px;top:458px;}
 .ts48p40{position:absolute;left:106px;top:476px;}
 .ts48p42{position:absolute;left:106px;top:494px;}
 .ts48p43{position:absolute;left:106px;top:512px;}
 .ts48p45{position:absolute;left:106px;top:531px;}
 .ts48p46{position:absolute;left:106px;top:549px;}
 .ts48p47{position:absolute;left:106px;top:568px;}
 .ts48p49{position:absolute;left:106px;top:586px;}
 .ts48p50{position:absolute;left:106px;top:605px;}
 .ts48p51{position:absolute;left:106px;top:623px;}
 .ts48p53{position:absolute;left:106px;top:641px;}
 .ts48p54{position:absolute;left:106px;top:660px;}
 .ts48p55{position:absolute;left:106px;top:678px;}
 .ts48p57{position:absolute;left:106px;top:697px;}
 .ts48p59{position:absolute;left:106px;top:715px;}
 .ts48p60{position:absolute;left:106px;top:733px;}
 .ts48p61{position:absolute;left:106px;top:752px;}
 .ts48p63{position:absolute;left:106px;top:770px;}
 .ts48p64{position:absolute;left:106px;top:789px;}
 .ts48p65{position:absolute;left:106px;top:807px;}
 .ts48p68{position:absolute;left:106px;top:825px;}
 .ts48p69{position:absolute;left:106px;top:844px;}
 .ts48p71{position:absolute;left:106px;top:881px;}
 .ts48p72{position:absolute;left:106px;top:899px;}
 .ts48p74{position:absolute;left:106px;top:917px;}
 .ts48p75{position:absolute;left:106px;top:936px;}
 .ts48p78{position:absolute;left:106px;top:954px;}
 .ts48p80{position:absolute;left:106px;top:972px;}
 .ts48p81{position:absolute;left:106px;top:991px;}
 .ts48p82{position:absolute;left:552px;top:880px;}
 .ts48p84{position:absolute;left:552px;top:892px;}
 .ts48p85{position:absolute;left:552px;top:904px;}
 .ts48p86{position:absolute;left:552px;top:916px;}

 /* Font Styles */
 .ft0p48{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p48{font-weight:normal;}
 .ft2p48{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p48{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p48{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p48{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft6p48{font-family:arial,sans-serif;}
 .ft7p48{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft8p48{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft9p48{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft10p48{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground48{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index47.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;48 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index49.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground48><img src="./background48.png" width="641" height="910" border="0" alt=""></div>
<div class=ts48p0><span class="ft0p48"> </span></div>
<div class=ts48p1><span class="ft0p48">Gravitybox Schedule Primer<span class="ft1p48"> </span></span></div>
<div class=ts48p3><span class="ft0p48">Page 46&nbsp; </span></div>
<div class=ts48p7><span class="ft2p48"> </span></div>
<div class=ts48p8><span class="ft3p48"> </span></div>
<div class=ts48p9><span class="ft4p48">1998&#45;2004 Gravitybox Software LLC<span class="ft3p48"> </span></span></div>
<div class=ts48p13><span class="ft5p48">Private Sub List1_OLEStartDrag(Data As DataObject, </span></div>
<div class=ts48p14><span class="ft5p48">AllowedEffects As Long) </span></div>
<div class=ts48p16><span class="ft5p48"> </span></div>
<div class=ts48p17><span class="ft5p48">&nbsp; Call Data.SetData(, Schedule1.OLEDragFormat) </span></div>
<div class=ts48p19><span class="ft5p48">&nbsp; AllowedEffects = vbDropEffectCopy </span></div>
<div class=ts48p22><span class="ft5p48"> </span></div>
<div class=ts48p23><span class="ft5p48">End Sub<span class="ft6p48"> </span></span></div>
<div class=ts48p25><span class="ft7p48"> </span></div>
<div class=ts48p26><span class="ft7p48"> </span></div>
<div class=ts48p27><span class="ft7p48">The OLEStartDrag event is called by the Schedule to test whether this source object is </span></div>
<div class=ts48p28><span class="ft7p48">dragging a valid type. The format may be set to the Schedule&#146;s OLEDragFormat </span></div>
<div class=ts48p29><span class="ft7p48">property. </span></div>
<div class=ts48p31><span class="ft7p48"> </span></div>
<div class=ts48p32><span class="ft5p48">Private Sub List1_OLESetData(Data As DataObject, DataFormat As </span></div>
<div class=ts48p34><span class="ft5p48">Integer) </span></div>
<div class=ts48p36><span class="ft5p48"> </span></div>
<div class=ts48p37><span class="ft5p48">&nbsp; &#145;This will create a 90 minute appointment </span></div>
<div class=ts48p39><span class="ft5p48">&nbsp; Call Data.SetData(Schedule1.CreateByteArray(90), </span></div>
<div class=ts48p40><span class="ft5p48">Schedule1.OLEDragFormat) </span></div>
<div class=ts48p42><span class="ft5p48"> </span></div>
<div class=ts48p43><span class="ft5p48">End Sub<span class="ft6p48"> </span></span></div>
<div class=ts48p45><span class="ft7p48"> </span></div>
<div class=ts48p46><span class="ft7p48">The source control&#146;s OLESetData event is called by the Schedule when dragging or a </span></div>
<div class=ts48p47><span class="ft7p48">drop has occurred. In this event, the drag format is set to the Schedule&#146;s </span></div>
<div class=ts48p49><span class="ft7p48">OLEDragFormat property. Also the Schedule expects an appointment length for this </span></div>
<div class=ts48p50><span class="ft7p48">format. The data must be a byte array. So that every developer will not need to create </span></div>
<div class=ts48p51><span class="ft7p48">his own byte array creation routine, one is implemented by the Schedule itself. The </span></div>
<div class=ts48p53><span class="ft7p48">CreateByteArray method takes a string value and returns a byte array with its ASCII </span></div>
<div class=ts48p54><span class="ft7p48">codes. If this is sent into the Data object&#146;s SetData method, the schedule will draw an </span></div>
<div class=ts48p55><span class="ft7p48">appointment of this length on itself. If the data entered is invalid or not a number, the </span></div>
<div class=ts48p57><span class="ft7p48">ScheduleIncrement property is used to determine the length of the appointment. </span></div>
<div class=ts48p59><span class="ft7p48"> </span></div>
<div class=ts48p60><span class="ft7p48">This is not the only way to use the AllowOtherDrops property. When true, any drop will </span></div>
<div class=ts48p61><span class="ft7p48">be valid. The user could drop files from Windows Explorer if he chose to do so. The only </span></div>
<div class=ts48p63><span class="ft7p48">difference is that all of this code would not have been needed and the appointment </span></div>
<div class=ts48p64><span class="ft7p48">would be set to the ScheduleIncrement property. Using the defined technique, allows </span></div>
<div class=ts48p65><span class="ft7p48">the developer to have control over the size of the appointment to be created. </span></div>
<div class=ts48p68><span class="ft7p48"> </span></div>
<div class=ts48p69><span class="ft8p48">Default Property Window </span></div>
<div class=ts48p71><span class="ft7p48">You may choose to use the default property window </span></div>
<div class=ts48p72><span class="ft7p48">included in the control. If the other properties like AllowAdd </span></div>
<div class=ts48p74><span class="ft7p48">and AllowEdit permit, the default property window will be </span></div>
<div class=ts48p75><span class="ft7p48">displayed when the user adds or double&#45;clicks and appointment. You may cancel this </span></div>
<div class=ts48p78><span class="ft7p48">functionality in the BeforeAdd or BeforeEdit events by setting the &#147;Cancel&#148; parameter to </span></div>
<div class=ts48p80><span class="ft7p48">false. The AllowAddDialog property also plays a part. Assuming that the property </span></div>
<div class=ts48p81><span class="ft7p48">settings of the control permit, the user will see the default property window. The window </span></div>
<div class=ts48p82><span class="ft9p48">Quick Tip </span></div>
<div class=ts48p84><span class="ft10p48">You may use the default property </span></div>
<div class=ts48p85><span class="ft10p48">window instead of building your own </span></div>
<div class=ts48p86><span class="ft10p48">custom edit screen. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
